//
//  FPmainTopViewModel.m
//  FilmParadise
//
//  Created by lanou3g on 15/7/15.
//  Copyright (c) 2015年 DLYgroup. All rights reserved.
//

#import "FPmainTopViewModel.h"

@implementation FPmainTopViewModel
+ (NSMutableArray *)setTopUrlDic:(NSDictionary *)dic
{
    
            NSMutableArray *modelArray = [NSMutableArray array];
            NSArray *array = [dic objectForKey:@"movies"];
            for (NSDictionary *dic in array) {
                FPmainTopViewModel *model = [[FPmainTopViewModel alloc]init];
                model.actor1 = [dic objectForKey:@"actorName1"];
                model.actor2 = [dic objectForKey:@"actorName2"];
                model.actorWord = [dic objectForKey:@"commonSpecial"];
                model.directorName = [dic objectForKey:@"directorName"];
                model.imgstr = [dic objectForKey:@"img"];
                model.movieID = [[dic objectForKey:@"movieId"]stringValue];
                model.movieLength =[[dic objectForKey:@"length"]stringValue];
                model.ratingFinal = [[dic objectForKey:@"ratingFinal"]stringValue];
                model.rDay  = [[dic objectForKey:@"rDay"]stringValue];
                model.rMonth = [[dic objectForKey:@"rMonth"]stringValue];
                model.rYear = [[dic objectForKey:@"rYear"]stringValue];
                model.titleCn = [dic objectForKey:@"titleCn"];
                model.titleEn = [dic objectForKey:@"titleEn"];
                model.type = [dic objectForKey:@"type"];
                [modelArray addObject:model];
            }
            
    return modelArray;
}
        

    
    


@end
